<div class="wrapper">
    <div id="buttons">
        <button onclick="downloadChartImage('image/png')">Download Chart Image (PNG)</button>
        <button onclick="downloadChart({ width: 800, height: 500 })">Download Chart Image (JPG 800x500)</button>
        <button onclick="openChartImage('image/jpeg')">Open Chart Image (JPG)</button>
    </div>
    <div id="myGrid" class="ag-theme-quartz">
    </div>
    <div id="myChart" class="ag-theme-quartz my-chart">
</div>